setVisible

abstract fun setVisible(block: DesignBlock, visible: Boolean)

Update a block's visibility. A hidden page slice hides the blocks that it owns, as a hidden parent hides its children. They show in no canvas and no export, and take no hit. It keeps its room in the page. The blocks keep their own visibility. Required scope: "layer/visibility"

Parameters

block

the block to update.

visible

whether the block shall be visible.